package com.example.zlpermissionservice.controller;

import com.example.zlpermissionservice.common.base.ResponseResult;
import com.example.zlpermissionservice.dto.response.MenuResDTO;
import com.example.zlpermissionservice.service.IResourceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author zhenliu（孙凌岳）
 * @Description 用户资源控制器
 * @Date 2025/6/16 9:10
 * @Version 1.0
 */
@Slf4j
@Api(tags = "资源管理")
@RestController
@RequestMapping("/resource")
public class ResourceController {
    @Resource
    private IResourceService resourceService;

//    /**
//     * @return
//     *  左侧菜单
//     */
//    @GetMapping("/menus")
//    @ApiOperation(value = "左侧菜单", notes = "左侧菜单")
//    public ResponseResult<List<MenuResDTO>> menus(Long userId) {
//        List<MenuResDTO> menus = resourceService.menus(userId);
//        return ResponseResult.success(menus);
//    }
}
